<table border="1">
    <tr>
        <th>名称</th>
        <th>SESSION ID</th>
        <th>FPS</th>
        <th>上线时间</th>
        <th>上次活动时间</th>
        <th>操作</th>
    </tr>
    <?php foreach ($clients as $client): ?>
    <tr>
        <td><?= $client['name'] ?></td>
        <td><?= $client['session_id'] ?></td>
        <td><?= $client['fps'] ?></td>
        <td><?= date('Y-m-d H:i:s', $client['connect_time']) ?></td>
        <td><?= date('Y-m-d H:i:s', $client['last_active_time']) ?></td>
        <td>
            <a href="index.php?action=monitor&id=<?= $client['session_id'] ?>">进入</a>
            <a href="index.php?action=stop&id=<?= $client['session_id'] ?>">停止</a>
        </td>
    </tr>
    <?php endforeach; ?>
</table>